package com.dy.service;

import com.dy.bean.Sugar;
import com.dy.bean.SugarTwo;
import com.dy.dao.SugarDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @projectName: day0612_1
 * @package: com.dy.service
 * @className: SugarServiceImpl
 * @author: DuanYu
 * @description: TODO
 * @date: 2024/6/12 19:37
 * @version: 1.0
 */
@Service

public class SugarServiceImpl implements SugarService {
    @Autowired
    SugarDao sugarDao;
    @Override
    public Double showDay() {
        return sugarDao.showDay();
    }

    @Override
    public List<Sugar> showXd() {
        return sugarDao.showXd();
    }

    @Override
    public List<SugarTwo> showJg() {
        return sugarDao.showJg();
    }

    @Override
    public List<Sugar> showMap() {
        return sugarDao.showMap();
    }
}
